export const setUser = (state, user) => {
  if(user){
    state.currentUser = user;
    state.isLogin = true;
  } else if (user == null){
    sessionStorage.setItem("userName",null);
    sessionStorage.setItem("userToken","");
    state.currentUser = null;
    state.isLogin = false;
    state.token = "";
  }
}
export const setToken = (state, token) => {
  if(token){
    state.token = token;
  }else if(token == null){
    state.token = "";
  }
}
export const setStatus_ = (state, status_) => {
	if(status_ == null){
		state.status_ = 0;
	}else{
		state.status_ = status_;
	}
}

